<template>
	<view class="nodata_content" v-if="requestCount==1">
		<image :src="ossUrl+'/noparner.png'" mode="" class="width_150 height_150"></image>
		<view class="fc_999 fz_14 mt_12" v-if="!basicUnserInfo.dealerAuditStatus">
			您还未提交资料，请提交资料～
		</view>
		<view class="fc_999 fz_14 mt_12" v-if="basicUnserInfo.dealerAuditStatus==1">
			当前资料还未审核通过，请耐心等待～
		</view>	
		
		<view class="fc_999 fz_14 mt_12" v-if="basicUnserInfo.dealerAuditStatus==2&&!basicUnserInfo.paySetMeal">
			当前未购买套餐～
		</view>
		<view class="fc_999 fz_14 mt_12" v-if="basicUnserInfo.dealerAuditStatus==3">
			当前资料审核未通过，请重新提交资料～
		</view>	
		<view v-if="!basicUnserInfo.dealerAuditStatus"  @click="bindBuyPage(1)"  class="button_submit width_200 height_40 br_100 fc_fff fz_14">
			立即提交资料
		</view>
		<view v-if="basicUnserInfo.dealerAuditStatus==3" @click="bindBuyPage(1)"  class="button_submit width_200 height_40 br_100 fc_fff fz_14">
			重新提交资料
		</view>
		<view v-if="basicUnserInfo.dealerAuditStatus==2&&!basicUnserInfo.paySetMeal"  @click="bindBuyPage(2)"  class="button_submit width_200 height_40 br_100 fc_fff fz_14">
			立即购买套餐
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			basicUnserInfo:{
				default:{}
			},
			ossUrl:{
				type:String,
				default:""
			},
			requestCount:{
				type:Number,
				default:0
			}
		},
		data(){
			return{
			}
		},
		created() {
			console.log("用户信息")
			console.log(this.basicUnserInfo)
		},
		methods:{
			bindBuyPage(type){
				let url = type==1?"/pages/account/pages/verify?edit=true":"/pages/common/pages/product"
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style lang="less">
	.flex(@A, @B, @C, @D) {
		display: flex;
		flex-direction: @A;
		flex-wrap: @B;
		justify-content: @C;
		align-items: @D;
	}
	
	.nodata_content {
		margin-top: 256rpx;
		.flex(column, nowrap, center, center);
		.button_submit{
			background-color: #FE5A1C;
			text-align: center;
			line-height: 80rpx;
			margin-top: 40rpx;
			
		}
	}
</style>